<?php
class State_Model extends ORM {
	
	protected $table_name = 'state';
	protected $primary_key = 'state_id';
	protected $col_name = 'state_name';
	protected $sorting = array('state_id' => 'desc');
	
	public function get()
	{
		$this->db->select('*');
		$this->db->from($this->table_name);		
		$this->db->orderby($this->col_name,'asc');
		$query = $this->db->get();
		return $query->result_array(false);
	}	
}
?>